package com.fish.admin.module.base.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fish.common.mybatisplus.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author lindy */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=false)
@TableName("base_dict_item")
public class BaseDictItem extends BaseEntity implements Serializable {

	/** 主键 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/** 显示名称 */
	private String name;

	/** 字典项值 */
	private String itemValue;

	/** 对应字典id */
	private String dictId;

	/** 字典项排序 */
	private Integer sort;

	/** 状态(0:不可用;1:可用) */
	@TableLogic(delval = "0", value = "1")
	private Integer status;

	/** 启用状态（0：停用；1：启用） */
	private Integer enabled;

}
